using System;
using System.Collections.Generic;
using System.Text;

namespace LogAnalyzer
{
    public class AnalyzerApplication : IDisposable
    {
        Dialogs.Main _mainForm;

        public AnalyzerApplication() 
        {
            _mainForm = new LogAnalyzer.Dialogs.Main();
        }

        public void Run()
        {
            Run(null);
        }
        public void Run(string[] args)
        {
            string[] files = args;

            ///
            /// here future managements of args....
            /// 

            if (files != null)
                _mainForm.LoadFiles(files);

            _mainForm.ShowDialog();
        }


        #region IDisposable Members

        public void Dispose()
        {
            _mainForm.Dispose();
        }

        #endregion

    }
}
